using System.Collections.Generic;
using System.Runtime.Serialization;

namespace FU.Capstones.IMS.Services.Common.DataContracts
{
    [DataContract(Namespace = InventoryConstants.ServiceNamespace)]
    public class Product
    {
        [DataMember]
        public int ProductID { get; set; }

        [DataMember]
        public string ProductCode { get; set; }

        [DataMember]
        public string ProductName { get; set; }

        [DataMember]
        public int WarehouseID { get; set; }
        
        [DataMember]
        public Warehouse Warehouse { get; set; }

        [DataMember]
        public string Description { get; set; }

        [DataMember]
        public long Quantity { get; set; }

        [DataMember]
        public bool IsDelete { get; set; }

        [DataMember]
        public List<Material> MaterialCollection { get; set; }

        [DataMember]
        public double PricePerUnit { get; set; }
    }
}